3.124 \(\int \cos ^2(c+d x) \sqrt{a+a \sec (c+d x)} (A+B \sec (c+d x)) \, dx\)

Optimal. Leaf size=117 \[ \frac{a (3 A+4 B) \sin (c+d x)}{4 d \sqrt{a \sec (c+d x)+a}}+\frac{\sqrt{a} (3 A+4 B) \tan ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a \sec (c+d x)+a}}\right )}{4 d}+\frac{a A \sin (c+d x) \cos (c+d x)}{2 d \sqrt{a \sec (c+d x)+a}} \]

[Out]

(Sqrt[a]*(3*A + 4*B)*ArcTan[(Sqrt[a]*Tan[c + d*x])/Sqrt[a + a*Sec[c + d*x]]])/(4*d) + (a*(3*A + 4*B)*Sin[c + d
*x])/(4*d*Sqrt[a + a*Sec[c + d*x]]) + (a*A*Cos[c + d*x]*Sin[c + d*x])/(2*d*Sqrt[a + a*Sec[c + d*x]])

________________________________________________________________________________________

Rubi [A]  time = 0.177077, antiderivative size = 117, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.121, Rules used = {4015, 3805, 3774, 203} \[ \frac{a (3 A+4 B) \sin (c+d x)}{4 d \sqrt{a \sec (c+d x)+a}}+\frac{\sqrt{a} (3 A+4 B) \tan ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a \sec (c+d x)+a}}\right )}{4 d}+\frac{a A \sin (c+d x) \cos (c+d x)}{2 d \sqrt{a \sec (c+d x)+a}} \]

Antiderivative was successfully verified.

[In]

Int[Cos[c + d*x]^2*Sqrt[a + a*Sec[c + d*x]]*(A + B*Sec[c + d*x]),x]

[Out]

(Sqrt[a]*(3*A + 4*B)*ArcTan[(Sqrt[a]*Tan[c + d*x])/Sqrt[a + a*Sec[c + d*x]]])/(4*d) + (a*(3*A + 4*B)*Sin[c + d
*x])/(4*d*Sqrt[a + a*Sec[c + d*x]]) + (a*A*Cos[c + d*x]*Sin[c + d*x])/(2*d*Sqrt[a + a*Sec[c + d*x]])

Rule 4015

Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)]*(csc[(e_.) + (f_.)*(x_)]*(
B_.) + (A_)), x_Symbol] :> Simp[(A*b^2*Cot[e + f*x]*(d*Csc[e + f*x])^n)/(a*f*n*Sqrt[a + b*Csc[e + f*x]]), x] +
 Dist[(A*b*(2*n + 1) + 2*a*B*n)/(2*a*d*n), Int[Sqrt[a + b*Csc[e + f*x]]*(d*Csc[e + f*x])^(n + 1), x], x] /; Fr
eeQ[{a, b, d, e, f, A, B}, x] && NeQ[A*b - a*B, 0] && EqQ[a^2 - b^2, 0] && NeQ[A*b*(2*n + 1) + 2*a*B*n, 0] &&
LtQ[n, 0]

Rule 3805

Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[(a*Cot[
e + f*x]*(d*Csc[e + f*x])^n)/(f*n*Sqrt[a + b*Csc[e + f*x]]), x] + Dist[(a*(2*n + 1))/(2*b*d*n), Int[Sqrt[a + b
*Csc[e + f*x]]*(d*Csc[e + f*x])^(n + 1), x], x] /; FreeQ[{a, b, d, e, f}, x] && EqQ[a^2 - b^2, 0] && LtQ[n, -2
^(-1)] && IntegerQ[2*n]

Rule 3774

Int[Sqrt[csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[(-2*b)/d, Subst[Int[1/(a + x^2), x], x, (b*C
ot[c + d*x])/Sqrt[a + b*Csc[c + d*x]]], x] /; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0]

Rule 203

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTan[(Rt[b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[b, 2]), x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rubi steps

\begin{align*} \int \cos ^2(c+d x) \sqrt{a+a \sec (c+d x)} (A+B \sec (c+d x)) \, dx &=\frac{a A \cos (c+d x) \sin (c+d x)}{2 d \sqrt{a+a \sec (c+d x)}}+\frac{1}{4} (3 A+4 B) \int \cos (c+d x) \sqrt{a+a \sec (c+d x)} \, dx\\ &=\frac{a (3 A+4 B) \sin (c+d x)}{4 d \sqrt{a+a \sec (c+d x)}}+\frac{a A \cos (c+d x) \sin (c+d x)}{2 d \sqrt{a+a \sec (c+d x)}}+\frac{1}{8} (3 A+4 B) \int \sqrt{a+a \sec (c+d x)} \, dx\\ &=\frac{a (3 A+4 B) \sin (c+d x)}{4 d \sqrt{a+a \sec (c+d x)}}+\frac{a A \cos (c+d x) \sin (c+d x)}{2 d \sqrt{a+a \sec (c+d x)}}-\frac{(a (3 A+4 B)) \operatorname{Subst}\left (\int \frac{1}{a+x^2} \, dx,x,-\frac{a \tan (c+d x)}{\sqrt{a+a \sec (c+d x)}}\right )}{4 d}\\ &=\frac{\sqrt{a} (3 A+4 B) \tan ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a+a \sec (c+d x)}}\right )}{4 d}+\frac{a (3 A+4 B) \sin (c+d x)}{4 d \sqrt{a+a \sec (c+d x)}}+\frac{a A \cos (c+d x) \sin (c+d x)}{2 d \sqrt{a+a \sec (c+d x)}}\\ \end{align*}

Mathematica [C]  time = 0.388255, size = 117, normalized size = 1. \[ \frac{\tan \left (\frac{1}{2} (c+d x)\right ) \sqrt{a (\sec (c+d x)+1)} \left (2 A \sqrt{1-\sec (c+d x)} \text{Hypergeometric2F1}\left (\frac{1}{2},3,\frac{3}{2},1-\sec (c+d x)\right )+B \left (\cos (c+d x) \sqrt{1-\sec (c+d x)}+\tanh ^{-1}\left (\sqrt{1-\sec (c+d x)}\right )\right )\right )}{d \sqrt{1-\sec (c+d x)}} \]

Antiderivative was successfully verified.

[In]

Integrate[Cos[c + d*x]^2*Sqrt[a + a*Sec[c + d*x]]*(A + B*Sec[c + d*x]),x]

[Out]

((B*(ArcTanh[Sqrt[1 - Sec[c + d*x]]] + Cos[c + d*x]*Sqrt[1 - Sec[c + d*x]]) + 2*A*Hypergeometric2F1[1/2, 3, 3/
2, 1 - Sec[c + d*x]]*Sqrt[1 - Sec[c + d*x]])*Sqrt[a*(1 + Sec[c + d*x])]*Tan[(c + d*x)/2])/(d*Sqrt[1 - Sec[c +
d*x]])

________________________________________________________________________________________

Maple [B]  time = 0.34, size = 398, normalized size = 3.4 \begin{align*}{\frac{1}{16\,d\cos \left ( dx+c \right ) \sin \left ( dx+c \right ) } \left ( 3\,A\sin \left ( dx+c \right ) \cos \left ( dx+c \right ) \left ( -2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}} \right ) ^{3/2}{\it Artanh} \left ( 1/2\,{\frac{\sqrt{2}\sin \left ( dx+c \right ) }{\cos \left ( dx+c \right ) }\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}} \right ) \sqrt{2}+4\,B\sin \left ( dx+c \right ) \cos \left ( dx+c \right ) \left ( -2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}} \right ) ^{3/2}{\it Artanh} \left ( 1/2\,{\frac{\sqrt{2}\sin \left ( dx+c \right ) }{\cos \left ( dx+c \right ) }\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}} \right ) \sqrt{2}+3\,A \left ( -2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}} \right ) ^{3/2}{\it Artanh} \left ( 1/2\,{\frac{\sqrt{2}\sin \left ( dx+c \right ) }{\cos \left ( dx+c \right ) }\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}} \right ) \sqrt{2}\sin \left ( dx+c \right ) +4\,B \left ( -2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}} \right ) ^{3/2}{\it Artanh} \left ( 1/2\,{\frac{\sqrt{2}\sin \left ( dx+c \right ) }{\cos \left ( dx+c \right ) }\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}} \right ) \sqrt{2}\sin \left ( dx+c \right ) -8\,A \left ( \cos \left ( dx+c \right ) \right ) ^{4}-4\,A \left ( \cos \left ( dx+c \right ) \right ) ^{3}-16\,B \left ( \cos \left ( dx+c \right ) \right ) ^{3}+12\,A \left ( \cos \left ( dx+c \right ) \right ) ^{2}+16\,B \left ( \cos \left ( dx+c \right ) \right ) ^{2} \right ) \sqrt{{\frac{a \left ( \cos \left ( dx+c \right ) +1 \right ) }{\cos \left ( dx+c \right ) }}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(d*x+c)^2*(a+a*sec(d*x+c))^(1/2)*(A+B*sec(d*x+c)),x)

[Out]

1/16/d*(3*A*sin(d*x+c)*cos(d*x+c)*(-2*cos(d*x+c)/(cos(d*x+c)+1))^(3/2)*arctanh(1/2*2^(1/2)*(-2*cos(d*x+c)/(cos
(d*x+c)+1))^(1/2)*sin(d*x+c)/cos(d*x+c))*2^(1/2)+4*B*sin(d*x+c)*cos(d*x+c)*(-2*cos(d*x+c)/(cos(d*x+c)+1))^(3/2
)*arctanh(1/2*2^(1/2)*(-2*cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*sin(d*x+c)/cos(d*x+c))*2^(1/2)+3*A*(-2*cos(d*x+c)/(
cos(d*x+c)+1))^(3/2)*arctanh(1/2*2^(1/2)*(-2*cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*sin(d*x+c)/cos(d*x+c))*2^(1/2)*s
in(d*x+c)+4*B*(-2*cos(d*x+c)/(cos(d*x+c)+1))^(3/2)*arctanh(1/2*2^(1/2)*(-2*cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*si
n(d*x+c)/cos(d*x+c))*2^(1/2)*sin(d*x+c)-8*A*cos(d*x+c)^4-4*A*cos(d*x+c)^3-16*B*cos(d*x+c)^3+12*A*cos(d*x+c)^2+
16*B*cos(d*x+c)^2)*(a*(cos(d*x+c)+1)/cos(d*x+c))^(1/2)/cos(d*x+c)/sin(d*x+c)

________________________________________________________________________________________

Maxima [B]  time = 2.33912, size = 2499, normalized size = 21.36 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^2*(a+a*sec(d*x+c))^(1/2)*(A+B*sec(d*x+c)),x, algorithm="maxima")

[Out]

1/16*((2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*((cos(1/2*arctan2(sin(2*d*x
+ 2*c), cos(2*d*x + 2*c)))*sin(2*d*x + 2*c) - (cos(2*d*x + 2*c) - 2)*sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d
*x + 2*c))) + sin(2*d*x + 2*c))*cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) + ((cos(2*d*x + 2*c)
- 2)*cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) + sin(2*d*x + 2*c)*sin(1/2*arctan2(sin(2*d*x + 2*c),
 cos(2*d*x + 2*c))) - cos(2*d*x + 2*c) + 2)*sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)))*sqrt(a)
+ 3*sqrt(a)*(arctan2((cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*(cos(1/2*arctan2
(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))*sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) - cos(1/2*arcta
n2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))*sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))), (cos(2*d*x
+ 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*(cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2
*c) + 1))*cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) + sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x +
 2*c) + 1))*sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))) + 1) - arctan2((cos(2*d*x + 2*c)^2 + sin(2*d
*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*(cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))*sin(1/2*arct
an2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) - cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))*sin(1/
2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))), (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c)
 + 1)^(1/4)*(cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))*cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*
d*x + 2*c))) + sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))*sin(1/2*arctan2(sin(2*d*x + 2*c), cos(
2*d*x + 2*c)))) - 1) - arctan2((cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*sin(1/
2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)), (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2
*c) + 1)^(1/4)*cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) + 1) + arctan2((cos(2*d*x + 2*c)^2 + s
in(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)), (c
os(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2
*d*x + 2*c) + 1)) - 1)))*A + 4*(2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*(co
s(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))*sin(d*x + c) - (cos(d*x + c) - 1)*sin(1/2*arctan2(sin(2
*d*x + 2*c), cos(2*d*x + 2*c) + 1)))*sqrt(a) + sqrt(a)*(arctan2(-(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*
cos(2*d*x + 2*c) + 1)^(1/4)*(cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))*sin(d*x + c) - cos(d*x +
 c)*sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))), (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*co
s(2*d*x + 2*c) + 1)^(1/4)*(cos(d*x + c)*cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) + sin(d*x + c
)*sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))) + 1) - arctan2(-(cos(2*d*x + 2*c)^2 + sin(2*d*x +
2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*(cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))*sin(d*x + c)
- cos(d*x + c)*sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))), (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*
c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*(cos(d*x + c)*cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) +
sin(d*x + c)*sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))) - 1) - arctan2((cos(2*d*x + 2*c)^2 + si
n(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)), (co
s(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*
d*x + 2*c) + 1)) + 1) + arctan2((cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*sin(1
/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)), (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x +
2*c) + 1)^(1/4)*cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) - 1)))*B)/d

________________________________________________________________________________________

Fricas [A]  time = 0.617674, size = 801, normalized size = 6.85 \begin{align*} \left [\frac{{\left ({\left (3 \, A + 4 \, B\right )} \cos \left (d x + c\right ) + 3 \, A + 4 \, B\right )} \sqrt{-a} \log \left (\frac{2 \, a \cos \left (d x + c\right )^{2} - 2 \, \sqrt{-a} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + a \cos \left (d x + c\right ) - a}{\cos \left (d x + c\right ) + 1}\right ) + 2 \,{\left (2 \, A \cos \left (d x + c\right )^{2} +{\left (3 \, A + 4 \, B\right )} \cos \left (d x + c\right )\right )} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{8 \,{\left (d \cos \left (d x + c\right ) + d\right )}}, -\frac{{\left ({\left (3 \, A + 4 \, B\right )} \cos \left (d x + c\right ) + 3 \, A + 4 \, B\right )} \sqrt{a} \arctan \left (\frac{\sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{\sqrt{a} \sin \left (d x + c\right )}\right ) -{\left (2 \, A \cos \left (d x + c\right )^{2} +{\left (3 \, A + 4 \, B\right )} \cos \left (d x + c\right )\right )} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{4 \,{\left (d \cos \left (d x + c\right ) + d\right )}}\right ] \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^2*(a+a*sec(d*x+c))^(1/2)*(A+B*sec(d*x+c)),x, algorithm="fricas")

[Out]

[1/8*(((3*A + 4*B)*cos(d*x + c) + 3*A + 4*B)*sqrt(-a)*log((2*a*cos(d*x + c)^2 - 2*sqrt(-a)*sqrt((a*cos(d*x + c
) + a)/cos(d*x + c))*cos(d*x + c)*sin(d*x + c) + a*cos(d*x + c) - a)/(cos(d*x + c) + 1)) + 2*(2*A*cos(d*x + c)
^2 + (3*A + 4*B)*cos(d*x + c))*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sin(d*x + c))/(d*cos(d*x + c) + d), -1/
4*(((3*A + 4*B)*cos(d*x + c) + 3*A + 4*B)*sqrt(a)*arctan(sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*cos(d*x + c)/
(sqrt(a)*sin(d*x + c))) - (2*A*cos(d*x + c)^2 + (3*A + 4*B)*cos(d*x + c))*sqrt((a*cos(d*x + c) + a)/cos(d*x +
c))*sin(d*x + c))/(d*cos(d*x + c) + d)]

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)**2*(a+a*sec(d*x+c))**(1/2)*(A+B*sec(d*x+c)),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [B]  time = 6.80222, size = 851, normalized size = 7.27 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^2*(a+a*sec(d*x+c))^(1/2)*(A+B*sec(d*x+c)),x, algorithm="giac")

[Out]

-1/8*((3*A*sqrt(-a)*sgn(cos(d*x + c)) + 4*B*sqrt(-a)*sgn(cos(d*x + c)))*log(abs((sqrt(-a)*tan(1/2*d*x + 1/2*c)
 - sqrt(-a*tan(1/2*d*x + 1/2*c)^2 + a))^2 - a*(2*sqrt(2) + 3))) - (3*A*sqrt(-a)*sgn(cos(d*x + c)) + 4*B*sqrt(-
a)*sgn(cos(d*x + c)))*log(abs((sqrt(-a)*tan(1/2*d*x + 1/2*c) - sqrt(-a*tan(1/2*d*x + 1/2*c)^2 + a))^2 + a*(2*s
qrt(2) - 3))) - 4*sqrt(2)*(5*(sqrt(-a)*tan(1/2*d*x + 1/2*c) - sqrt(-a*tan(1/2*d*x + 1/2*c)^2 + a))^6*A*sqrt(-a
)*a*sgn(cos(d*x + c)) - 12*(sqrt(-a)*tan(1/2*d*x + 1/2*c) - sqrt(-a*tan(1/2*d*x + 1/2*c)^2 + a))^6*B*sqrt(-a)*
a*sgn(cos(d*x + c)) + 19*(sqrt(-a)*tan(1/2*d*x + 1/2*c) - sqrt(-a*tan(1/2*d*x + 1/2*c)^2 + a))^4*A*sqrt(-a)*a^
2*sgn(cos(d*x + c)) + 76*(sqrt(-a)*tan(1/2*d*x + 1/2*c) - sqrt(-a*tan(1/2*d*x + 1/2*c)^2 + a))^4*B*sqrt(-a)*a^
2*sgn(cos(d*x + c)) - 17*(sqrt(-a)*tan(1/2*d*x + 1/2*c) - sqrt(-a*tan(1/2*d*x + 1/2*c)^2 + a))^2*A*sqrt(-a)*a^
3*sgn(cos(d*x + c)) - 36*(sqrt(-a)*tan(1/2*d*x + 1/2*c) - sqrt(-a*tan(1/2*d*x + 1/2*c)^2 + a))^2*B*sqrt(-a)*a^
3*sgn(cos(d*x + c)) + A*sqrt(-a)*a^4*sgn(cos(d*x + c)) + 4*B*sqrt(-a)*a^4*sgn(cos(d*x + c)))/((sqrt(-a)*tan(1/
2*d*x + 1/2*c) - sqrt(-a*tan(1/2*d*x + 1/2*c)^2 + a))^4 - 6*(sqrt(-a)*tan(1/2*d*x + 1/2*c) - sqrt(-a*tan(1/2*d
*x + 1/2*c)^2 + a))^2*a + a^2)^2)/d